Derive Macrosยง
- Emit an
std::convert::From<i32>
implementation for an enum type. When converting from ani32
that does not have an enumeration value, the system will panic, unless a fallback enumeration symbol is specified with#[EnumConvertFromIntFallback = "Identifier"]
. - Emit an
std::fmt::Display
implementation for an enum type. - Emit an
std::error::Error
implementation for an enum type. This is most useful in conjunction withDebug
andEnumDisplay
.